package xin.nick.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import java.time.LocalDateTime;


/**
 * <p>
 * 任务
 * </p>
 *
 * @author Nick
 * @since 2023-06-22
 */
@Data
@Schema(description = "TaskUpdateDTO对象-任务")
public class TaskUpdateDTO {

    @Schema(description = "任务id")
    @NotNull(message="[taskId]不可为空")
    private Integer taskId;

    @Schema(description = "任务名字")
    @Size(max = 255, message = "[taskName]不可以超过255")
    private String taskName;

    @Schema(description = "任务描述")
    @Size(max = 255, message = "[taskDescription]不可以超过255")
    private String taskDescription;

    @Schema(description = "任务内容")
    private String taskContent;

    @Schema(description = "任务类型")
    @Size(max = 64, message = "[teskType]不可以超过64")
    private String teskType;

    @Schema(description = "任务状态")
    @Size(max = 64, message = "[taskState]不可以超过64")
    private String taskState;

    @Schema(description = "任务开始时间")
    private LocalDateTime beginTime;

    @Schema(description = "任务结束时间")
    private LocalDateTime endTime;

    @Schema(description = "备注")
    @Size(max = 255, message = "[remark]不可以超过255")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人id")
    private Integer createUserId;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "更新人id")
    private Integer updateUserId;

    @Schema(description = "是否删除")
    private Boolean deleted;


}
